Skip to main content

Append Item To List

AutomatR.DefaultActivities.List.AppendItemToList<T>

The "Append Item To List" activity in AutomatR, categorized under List, allows you to add an item at the end of a specified list. This activity is useful for dynamically updating and managing lists within your automation workflows.

Properties

NameDescription
Input
Appended ItemSpecifies the item that you want to add at the end of the list. Variables of the appropriate type containing the item to be appended.
ListSpecifies the list to which the item should be appended. Variables of the list type containing the list to be updated.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Append Item To List" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the wait time is 1000 milliseconds or 1 sec, i.e., 1.

How to use:

  1. Drag and drop the "Append Item To List" activity onto the workflow.
  2. Configure the properties by specifying the item to be appended and the target list.
  3. Optionally, configure the delay based on your requirements.
  4. Execute the workflow to append the specified item to the end of the list.

Example: Consider an example where the "Append Item To List" activity is used to add a new item to a list of strings:

Append Item To List:
Appended Item: "NewValue"
List: myList

In this example, the activity adds the string "NewValue" to the end of the list named "myList."